<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商品一览页面</title>
<link href="css/jimu.css" type="text/css" rel="stylesheet">
</head>
<body>
<!-- 头部的包含文件 -->
<%@include file="../common/head.jsp" %>
<table class="main">
	<tr>
		<td style="width:180px; vertical-align:top;">
		<%@ include file="../common/menu.jsp" %>
		</td>
		<td style="vertical-align:top;padding:20px;">
		<div align="center" style="background-color:#87ceff">
			<p>订单信息：</p>
			 <table class="listTbl" id="shoppingCart">
		  <%--  <s:iterator value="orders"> --%>
		        <tr>
		          <th colspan="2" style="text-align:center">订单编号:<s:property value="order.id"/></th>
		          <th colspan="3" style="text-align:center">顾客账户:<s:property value="order.userBean.name"/></th>
		        </tr>
				<tr>
				    <th>商品编号</th>
					<th>商品图片</th>
					<th>商品名称</th>
					<th>商品价格</th>
					<th>购买数量</th>
				</tr>
				<s:iterator value="order.orderitems">
				<tr>
					<td><s:property value="product.productid"/></td>
					<td>
						<img style="height:80px" alt="<s:property value="product.productname"/>" src="/ssh/photo/product/<s:property value="product.photo"/>">
					</td>
					<td>
						<s:property value="product.productname"/>
					</td>
					<td style="text-align:right;"><s:property value="product.nowprice"/></td>
					<td style="text-align:right;">
	                    <s:property value="count"/>
					</td>
				</tr>
				</s:iterator>
				<tr>
				   <td colspan="4">总计:</td>
				   <td><s:property value="order.totalprice"/></td>
				   
				</tr>
				<%-- </s:iterator> --%>
			</table>
			</div>
		</td>
	</tr>
</table>
<%@include file="../common/tail.jsp" %>
</body></html>